//
//  LGTButton.swift
//  KJLGT
//
//  Created by jenkin on 2019/8/11.
//  Copyright © 2019年 jenkin. All rights reserved.
//

import UIKit

class LGTButton: UIButton {
    
    var dw:CGFloat = 0
    var dh:CGFloat = 0
    public func initPointAction(dw:CGFloat, dh:CGFloat){
        self.dw = dw
        self.dh = dh
    }
    
    override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
        let bounds = self.bounds
        let rect = bounds.insetBy(dx: -self.dw, dy: -self.dh)
        return rect.contains(point)
    }
    
    override var isHighlighted: Bool{
        set{
            
        }
        get{
            return false
        }
    }
}
